#ifndef __HEARTBEAT_PUBLIC_H
#define __HEARTBEAT_PUBLIC_H

#include <sys/un.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#include <stddef.h>

struct socket_object {
    int                 fd;
    struct sockaddr_un  un;
};

typedef enum _BUSINESS_OPT_TYPE {
    kOptUnknown     = 0,
    // kOptRegister    = 1,
    // kOptUnRegister  = 2,
    kOptSetInterval = 3,
    kOptStartHB     = 4,
    kOptStopHB      = 5,
    kOptHeartBeat   = 6,
    kOptNormalExist = 7,
    kOptSendProcessNameToServer = 8
}BUSINESS_OPT_TYPE;

typedef struct _hb_business_packet {
    BUSINESS_OPT_TYPE opt_type;
    int               data1;
    int               data2;
}hb_business_packet;

#endif